package com.luoqiu.springCloud;

import com.netflix.loadbalancer.RetryRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 洛秋y
 * @date 2020/11/20 15:00
 */
@SpringBootApplication
@EnableFeignClients
@EnableEurekaClient
@RibbonClient(name = "CLOUD-PROVIDER-HYSTRIX-PAYMENT", configuration = RetryRule.class)
@EnableHystrix//开启服务降级 hystrix
public class HystrixOrder80 {
    public static void main(String[] args) {
        SpringApplication.run(HystrixOrder80.class, args);
    }
}
